package cn.cs.mapper;

import cn.cs.pojo.Invoice;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface InvoiceMapper {

	public Invoice getInvoiceById(@Param(value = "id") String id)throws Exception;

	public List<Invoice> getInvoiceListByUserId(@Param(value = "userId") String userId, @Param(value = "userPid") String userPid)throws Exception;

	public List<Invoice> getInvoiceListByMap(Map<String, Object> param)throws Exception;

	public Integer getInvoiceCountByMap(Map<String, Object> param)throws Exception;

	public Integer insertInvoice(Invoice invoice)throws Exception;

	public Integer updateInvoice(Invoice invoice)throws Exception;

	public Integer deleteInvoiceById(@Param(value = "id") Long id)throws Exception;

	public int updateAccountDetailByIds(String[] params)throws Exception;

}
